package com.ziyun.erp.modules.capital.service.impl;


import com.ziyun.erp.modules.capital.vo.MerchantApplyCashItemsVo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.erp.modules.capital.dao.MerchantApplyCashItemsDao;
import com.ziyun.erp.modules.capital.entity.MerchantApplyCashItemsEntity;
import com.ziyun.erp.modules.capital.service.MerchantApplyCashItemsService;


@Service("merchantApplyCashItemsService")
public class MerchantApplyCashItemsServiceImpl extends ServiceImpl<MerchantApplyCashItemsDao, MerchantApplyCashItemsEntity> implements MerchantApplyCashItemsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<MerchantApplyCashItemsEntity> page = this.selectPage(
                new Query<MerchantApplyCashItemsEntity>(params).getPage(),
                new EntityWrapper<MerchantApplyCashItemsEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<MerchantApplyCashItemsVo> selectApplyCashItemList(Integer id) {
        return this.baseMapper.selectApplyCashItemList(id);
    }

    @Override
    public List<MerchantApplyCashItemsEntity> selectOldApplyCashItemList(Integer id) {
        return this.baseMapper.selectOldApplyCashItemList(id);
    }

}
